package com.zhehekeji.opsys.api.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * @ClassName TWechatRedpackRecord
 * @Description TODO
 * @author chenweiliu chenwei.liu@163.com
 * @date 2018-2-1   下午3:51:31
 */
@Entity
@Table(name="t_wechat_redpack_record")
public class TWechatRedpackRecord implements java.io.Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1726405005629486363L;
	private Long id;
	private String account;
	private String openid;
	private Integer amount;
	private Date createTime;
	private String activityCode;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ID",length=20,nullable=false,unique=true)
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name="ACCOUNT",length=64,nullable=true)
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	@Column(name="OPENID",length=64,nullable=true)
	public String getOpenid() {
		return openid;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}
	@Column(name="AMOUNT",length=11,nullable=true)
	public Integer getAmount() {
		return amount;
	}
	public void setAmount(Integer amount) {
		this.amount = amount;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME")
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name="ACTIVITY_CODE",length=64,nullable=true)
	public String getActivityCode() {
		return activityCode;
	}
	public void setActivityCode(String activityCode) {
		this.activityCode = activityCode;
	}
}

